package cn.bdqn.model.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class LossassessmentinfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LossassessmentinfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andLossAssessmentNumberIsNull() {
            addCriterion("loss_assessment_number is null");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberIsNotNull() {
            addCriterion("loss_assessment_number is not null");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberEqualTo(Integer value) {
            addCriterion("loss_assessment_number =", value, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberNotEqualTo(Integer value) {
            addCriterion("loss_assessment_number <>", value, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberGreaterThan(Integer value) {
            addCriterion("loss_assessment_number >", value, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("loss_assessment_number >=", value, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberLessThan(Integer value) {
            addCriterion("loss_assessment_number <", value, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberLessThanOrEqualTo(Integer value) {
            addCriterion("loss_assessment_number <=", value, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberIn(List<Integer> values) {
            addCriterion("loss_assessment_number in", values, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberNotIn(List<Integer> values) {
            addCriterion("loss_assessment_number not in", values, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberBetween(Integer value1, Integer value2) {
            addCriterion("loss_assessment_number between", value1, value2, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("loss_assessment_number not between", value1, value2, "lossAssessmentNumber");
            return (Criteria) this;
        }

        public Criteria andJobNumberIsNull() {
            addCriterion("job_number is null");
            return (Criteria) this;
        }

        public Criteria andJobNumberIsNotNull() {
            addCriterion("job_number is not null");
            return (Criteria) this;
        }

        public Criteria andJobNumberEqualTo(String value) {
            addCriterion("job_number =", value, "jobNumber");
            return (Criteria) this;
        }

        public Criteria andJobNumberNotEqualTo(String value) {
            addCriterion("job_number <>", value, "jobNumber");
            return (Criteria) this;
        }

        public Criteria andJobNumberGreaterThan(String value) {
            addCriterion("job_number >", value, "jobNumber");
            return (Criteria) this;
        }

        public Criteria andJobNumberGreaterThanOrEqualTo(String value) {
            addCriterion("job_number >=", value, "jobNumber");
            return (Criteria) this;
        }

        public Criteria andJobNumberLessThan(String value) {
            addCriterion("job_number <", value, "jobNumber");
            return (Criteria) this;
        }

        public Criteria andJobNumberLessThanOrEqualTo(String value) {
            addCriterion("job_number <=", value, "jobNumber");
            return (Criteria) this;
        }

        public Criteria andJobNumberLike(String value) {
            addCriterion("job_number like", value, "jobNumber");
            return (Criteria) this;
        }

        public Criteria andJobNumberNotLike(String value) {
            addCriterion("job_number not like", value, "jobNumber");
            return (Criteria) this;
        }

        public Criteria andJobNumberIn(List<String> values) {
            addCriterion("job_number in", values, "jobNumber");
            return (Criteria) this;
        }

        public Criteria andJobNumberNotIn(List<String> values) {
            addCriterion("job_number not in", values, "jobNumber");
            return (Criteria) this;
        }

        public Criteria andJobNumberBetween(String value1, String value2) {
            addCriterion("job_number between", value1, value2, "jobNumber");
            return (Criteria) this;
        }

        public Criteria andJobNumberNotBetween(String value1, String value2) {
            addCriterion("job_number not between", value1, value2, "jobNumber");
            return (Criteria) this;
        }

        public Criteria andOwnerNameIsNull() {
            addCriterion("owner_name is null");
            return (Criteria) this;
        }

        public Criteria andOwnerNameIsNotNull() {
            addCriterion("owner_name is not null");
            return (Criteria) this;
        }

        public Criteria andOwnerNameEqualTo(String value) {
            addCriterion("owner_name =", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameNotEqualTo(String value) {
            addCriterion("owner_name <>", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameGreaterThan(String value) {
            addCriterion("owner_name >", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameGreaterThanOrEqualTo(String value) {
            addCriterion("owner_name >=", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameLessThan(String value) {
            addCriterion("owner_name <", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameLessThanOrEqualTo(String value) {
            addCriterion("owner_name <=", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameLike(String value) {
            addCriterion("owner_name like", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameNotLike(String value) {
            addCriterion("owner_name not like", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameIn(List<String> values) {
            addCriterion("owner_name in", values, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameNotIn(List<String> values) {
            addCriterion("owner_name not in", values, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameBetween(String value1, String value2) {
            addCriterion("owner_name between", value1, value2, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameNotBetween(String value1, String value2) {
            addCriterion("owner_name not between", value1, value2, "ownerName");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentLocationIsNull() {
            addCriterion("loss_assessment_location is null");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentLocationIsNotNull() {
            addCriterion("loss_assessment_location is not null");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentLocationEqualTo(String value) {
            addCriterion("loss_assessment_location =", value, "lossAssessmentLocation");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentLocationNotEqualTo(String value) {
            addCriterion("loss_assessment_location <>", value, "lossAssessmentLocation");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentLocationGreaterThan(String value) {
            addCriterion("loss_assessment_location >", value, "lossAssessmentLocation");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentLocationGreaterThanOrEqualTo(String value) {
            addCriterion("loss_assessment_location >=", value, "lossAssessmentLocation");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentLocationLessThan(String value) {
            addCriterion("loss_assessment_location <", value, "lossAssessmentLocation");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentLocationLessThanOrEqualTo(String value) {
            addCriterion("loss_assessment_location <=", value, "lossAssessmentLocation");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentLocationLike(String value) {
            addCriterion("loss_assessment_location like", value, "lossAssessmentLocation");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentLocationNotLike(String value) {
            addCriterion("loss_assessment_location not like", value, "lossAssessmentLocation");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentLocationIn(List<String> values) {
            addCriterion("loss_assessment_location in", values, "lossAssessmentLocation");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentLocationNotIn(List<String> values) {
            addCriterion("loss_assessment_location not in", values, "lossAssessmentLocation");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentLocationBetween(String value1, String value2) {
            addCriterion("loss_assessment_location between", value1, value2, "lossAssessmentLocation");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentLocationNotBetween(String value1, String value2) {
            addCriterion("loss_assessment_location not between", value1, value2, "lossAssessmentLocation");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentTimeIsNull() {
            addCriterion("loss_assessment_time is null");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentTimeIsNotNull() {
            addCriterion("loss_assessment_time is not null");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentTimeEqualTo(Date value) {
            addCriterionForJDBCDate("loss_assessment_time =", value, "lossAssessmentTime");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("loss_assessment_time <>", value, "lossAssessmentTime");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("loss_assessment_time >", value, "lossAssessmentTime");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("loss_assessment_time >=", value, "lossAssessmentTime");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentTimeLessThan(Date value) {
            addCriterionForJDBCDate("loss_assessment_time <", value, "lossAssessmentTime");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("loss_assessment_time <=", value, "lossAssessmentTime");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentTimeIn(List<Date> values) {
            addCriterionForJDBCDate("loss_assessment_time in", values, "lossAssessmentTime");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("loss_assessment_time not in", values, "lossAssessmentTime");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("loss_assessment_time between", value1, value2, "lossAssessmentTime");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("loss_assessment_time not between", value1, value2, "lossAssessmentTime");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentSumIsNull() {
            addCriterion("loss_assessment_sum is null");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentSumIsNotNull() {
            addCriterion("loss_assessment_sum is not null");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentSumEqualTo(Integer value) {
            addCriterion("loss_assessment_sum =", value, "lossAssessmentSum");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentSumNotEqualTo(Integer value) {
            addCriterion("loss_assessment_sum <>", value, "lossAssessmentSum");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentSumGreaterThan(Integer value) {
            addCriterion("loss_assessment_sum >", value, "lossAssessmentSum");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentSumGreaterThanOrEqualTo(Integer value) {
            addCriterion("loss_assessment_sum >=", value, "lossAssessmentSum");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentSumLessThan(Integer value) {
            addCriterion("loss_assessment_sum <", value, "lossAssessmentSum");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentSumLessThanOrEqualTo(Integer value) {
            addCriterion("loss_assessment_sum <=", value, "lossAssessmentSum");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentSumIn(List<Integer> values) {
            addCriterion("loss_assessment_sum in", values, "lossAssessmentSum");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentSumNotIn(List<Integer> values) {
            addCriterion("loss_assessment_sum not in", values, "lossAssessmentSum");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentSumBetween(Integer value1, Integer value2) {
            addCriterion("loss_assessment_sum between", value1, value2, "lossAssessmentSum");
            return (Criteria) this;
        }

        public Criteria andLossAssessmentSumNotBetween(Integer value1, Integer value2) {
            addCriterion("loss_assessment_sum not between", value1, value2, "lossAssessmentSum");
            return (Criteria) this;
        }

        public Criteria andReportedNumberIsNull() {
            addCriterion("reported_number is null");
            return (Criteria) this;
        }

        public Criteria andReportedNumberIsNotNull() {
            addCriterion("reported_number is not null");
            return (Criteria) this;
        }

        public Criteria andReportedNumberEqualTo(String value) {
            addCriterion("reported_number =", value, "reportedNumber");
            return (Criteria) this;
        }

        public Criteria andReportedNumberNotEqualTo(String value) {
            addCriterion("reported_number <>", value, "reportedNumber");
            return (Criteria) this;
        }

        public Criteria andReportedNumberGreaterThan(String value) {
            addCriterion("reported_number >", value, "reportedNumber");
            return (Criteria) this;
        }

        public Criteria andReportedNumberGreaterThanOrEqualTo(String value) {
            addCriterion("reported_number >=", value, "reportedNumber");
            return (Criteria) this;
        }

        public Criteria andReportedNumberLessThan(String value) {
            addCriterion("reported_number <", value, "reportedNumber");
            return (Criteria) this;
        }

        public Criteria andReportedNumberLessThanOrEqualTo(String value) {
            addCriterion("reported_number <=", value, "reportedNumber");
            return (Criteria) this;
        }

        public Criteria andReportedNumberLike(String value) {
            addCriterion("reported_number like", value, "reportedNumber");
            return (Criteria) this;
        }

        public Criteria andReportedNumberNotLike(String value) {
            addCriterion("reported_number not like", value, "reportedNumber");
            return (Criteria) this;
        }

        public Criteria andReportedNumberIn(List<String> values) {
            addCriterion("reported_number in", values, "reportedNumber");
            return (Criteria) this;
        }

        public Criteria andReportedNumberNotIn(List<String> values) {
            addCriterion("reported_number not in", values, "reportedNumber");
            return (Criteria) this;
        }

        public Criteria andReportedNumberBetween(String value1, String value2) {
            addCriterion("reported_number between", value1, value2, "reportedNumber");
            return (Criteria) this;
        }

        public Criteria andReportedNumberNotBetween(String value1, String value2) {
            addCriterion("reported_number not between", value1, value2, "reportedNumber");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}